<template>
	<view class="content">
		<view class="detail-content">
			<view class="video">
				<video 
				id="myVideo" 
				src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/chuangye/shipin3.mp4"
				:controls="true"
				style="width: 100%; height: 100%;"
				object-fit="contain"
				>
				</video>
			</view>
			<view class="video-info" v-for="item in info" :key="item.id">
				<view class="title">
					{{ item.title }}
				</view>
				<view class="time">
					<view class="total-time">
						{{ item.totalTime }}
					</view>
					<view class="data-time">
						{{ item.dataTime }}
					</view>
				</view>
			</view>
			<view class="intro">
				<view class="title FangZhengHanZhenGuangBiaoJianTi">
					视频介绍
				</view>
				<view class="text">
					{{ text }}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				info: [
					{
						id: 1,
						title : '甘肃雄狮保安服务有限公司  董事长  韩进彪',
						totalTime: '1分41秒',
						dataTime: '2023-03-04',
					}
				],
				text: '甘肃雄狮保安服务有限公司  董事长  韩进彪',
				id:null
			}
		},
		onLoad(e) {
			this.id = e.id
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 100%;
		height: 55vh;
	}
	.detail-content{
		width: 100%;
		height: 100%;
		.video{
			width: 100%;
			height: 380rpx;
		}
		.video-info{
			width: 100%;
			height: 190rpx;
			padding: 30rpx;
			background-color: #Fff;
			.title{
				font-size: 35rpx;
			}
			.time{
				display: flex;
				justify-content: space-between;
				color: #767676;
				margin-top: 50rpx;
			}
		}
		.intro{
			margin-top: 50rpx;
			width: calc(100% - 60rpx);
			height: 100%;
			padding: 30rpx;
			margin-left: 32rpx;
			background-color: #Fff;
			border-radius: 30rpx;
			.title{
				font-size: 45rpx;
			}
			.text{
				text-indent: 2rem;
				margin-top: 30rpx;
				line-height: 50rpx;
			}
		}
	}
</style>